package com.ruoyi.project.mapper;

import java.util.List;
import java.util.Map;

import com.ruoyi.project.domain.OrderDispatch;

/**
 * 派单Mapper接口
 * 
 * @author phil
 * @date 2020-05-31
 */
public interface OrderDispatchMapper{
	/**
	 * 查询派单
	 * 
	 * @param orderId 派单ID
	 * @return 派单
	 */
	public OrderDispatch selectOrderDispatchById(Long orderId);

	/**
	 * 查询派单列表
	 * 
	 * @param orderDispatch 派单
	 * @return 派单集合
	 */
	public List<OrderDispatch> selectOrderDispatchList(OrderDispatch orderDispatch);

	/**
	 * 新增派单
	 * 
	 * @param orderDispatch 派单
	 * @return 结果
	 */
	public int insertOrderDispatch(OrderDispatch orderDispatch);

	/**
	 * 修改派单
	 * 
	 * @param orderDispatch 派单
	 * @return 结果
	 */
	public int updateOrderDispatch(OrderDispatch orderDispatch);

	/**
	 * 删除派单
	 * 
	 * @param orderId 派单ID
	 * @return 结果
	 */
	public int deleteOrderDispatchById(Long orderId);

	/**
	 * 批量删除派单
	 * 
	 * @param orderIds 需要删除的数据ID
	 * @return 结果
	 */
	public int deleteOrderDispatchByIds(String[] orderIds);

	/**
	 * 查询我的接单数据
	 * 
	 * @param paramMap
	 * @return
	 */
	public List<Map<String, Object>> getMyOrderList(Map<String, Object> paramMap);
}
